layui.use(["element", "layer", "okUtils", "okTab", "okLayer", "jQContextMenu"], function () {
  var okUtils = layui.okUtils;
  var $ = layui.jquery;
  var layer = layui.layer;
  var okLayer = layui.okLayer;
  var element = layui.element;

  /**
   * 移动端的处理事件
   */
  $("body").on("click", ".layui-layout-admin .ok-left a[data-url], .ok-make", function () {
    if ($(".layui-layout-admin").hasClass("ok-left-hide")) {
      $(".layui-layout-admin").removeClass("ok-left-hide");
      $(".ok-menu").find('i').removeClass("ok-menu-hide");
    }
  });
  /**
   * 退出操作
   */
  $("#logout").click(function () {
    okLayer.confirm("确定要退出吗？", function (index) {
      sessionStorage.setItem('tabMenu', '');
      sessionStorage.setItem('tabMenuLeft', '');
      window.sessionStorage.setItem("user", "");
      window.location = mainUri+"/login.html";
    });
  });
});
